package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbAdminUserMapper;
import com.dongdongshop.pojo.TbAdminUser;
import com.dongdongshop.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

@Service
@org.springframework.stereotype.Service
public class AdminServiceImpl implements AdminService {

    @Resource
    private TbAdminUserMapper tbAdminUserMapper;

    @Override
    public TbAdminUser getAdminByUsername(String username) {
        return tbAdminUserMapper.getAdminByUsername(username);
    }
}
